package com.home.qh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.StoreDao;
import com.home.qh.model.Store;
import com.home.qh.service.StoreManager;

@Service("storeManager")
public class StoreManagerImpl extends GenericManagerImpl<Store, Long> implements	StoreManager {
	StoreDao storeDao;

    @Autowired
    public StoreManagerImpl(StoreDao storeDao) {
        super(storeDao);
        this.storeDao = storeDao;
    }

    public List<Store> getStoreByCodeAndName(String storeCode,	String storeName) {
		return storeDao.getStoreByCodeAndName(storeCode, storeName);
	}

	public List<Store> getStoreByStore(Store store, String sort, boolean desc, int startResult, int maxResults) {
		return storeDao.getStoreByStore(store, sort, desc, startResult, maxResults);
	}

}
